﻿#ifndef CHANGEPWD_H
#define CHANGEPWD_H

#include <QDialog>
#include <QMessageBox>
#include "config.h"

namespace Ui {
class ChangePwd;
}

class ChangePwd : public QDialog
{
    Q_OBJECT

signals:
    void sendShowMe(); //发送信号显示我界面
    void sendNewPwdToMe(QString newPwd); //发送信号传递新密码给我界面
public:
    explicit ChangePwd(QWidget *parent = 0);
    ~ChangePwd();
    bool isPwdSame(); //判断两次输入的密码是否一致
    void initScene(); //初始化窗口

    QString userName;
    QString oldPwd;
    QString newPwd;
    QString surePwd;

public slots:
    void recShowChangePwd(); //接收信号显示修改密码界面

private slots:
    void on_back_clicked();

    void on_change_clicked();

private:
    Ui::ChangePwd *ui;
};

#endif // CHANGEPWD_H
